package com.gk.panda.apis.service;

import com.gk.panda.apis.dto.EquipmentPointDto;
import com.gk.panda.apis.entity.TransectManager.dto.GetEquipmentPointDto;
import com.gk.panda.apis.entity.TransectManager.vo.EquipmentPointVo;
import com.gk.panda.apis.entity.largeScreen.dto.EPListDto;

import java.text.ParseException;
import java.util.List;

public interface EquipmentPointService {

    /**
     * 添加设备点位
     * @param equipmentPointDto
     * @return
     */
    int insertequipmentPoint(EquipmentPointDto equipmentPointDto);

    /**
     * 根据id获取设备点位详情
     * @param id
     * @return
     */
    EquipmentPointVo getEPInfo(Integer id);

    /**
     * 获取设备点位列表
     * @param equipmentPointDto
     * @return
     */
    List<EquipmentPointVo> getEPList(GetEquipmentPointDto equipmentPointDto);

    /**
     * 根据设备id删除设备点位
     * @param id
     * @return
     */
    int removeEPById(Integer id);

    /**
     * 修改设备点位
     * @param equipmentPointDto
     * @return
     */
    int updateEquipmentPoint(EquipmentPointDto equipmentPointDto);

    /**
     * 同步设备表数据
     * @throws ParseException
     */
    void syncDevicePoint() throws ParseException;

    /**
     * 大屏获取设备点位列表
     * @param dto
     * @return
     */
    List<EquipmentPointVo> getEPListForLS(EPListDto dto);
}
